package homework_05;

public class home_02 {
    public static boolean year(int n){
        boolean temp=false;
        if (n%4==0&&n%100!=0||n%400==0){
            return true;
        }
        return false;
    }

    public static void main(String[] args) {
        boolean a=year(2020);
        if (a=true){
            System.out.println("是闰年");
        }else {
            System.out.println("不是闰年");
        }
    }
}
